package com.example.springboot_shopsystem01.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.springboot_shopsystem01.domain.Staff;

import java.util.List;

public interface StaffService {
    Boolean save(Staff staff);      //创建
    Boolean update(Staff staff);        //修改
    Boolean delete(Integer id);     //删除
    Staff getById(Integer id);      //查找
    List<Staff> getAll();           //获取所有
    IPage<Staff> getPage(int currentPage, int pageSize);  //重载：根据页数查找
    IPage<Staff> getPage(int currentPage, int pageSize, Staff staff);  //重载：根据页面以及条件查找

    Staff login(Staff staff);  //登录
}
